#include <iostream>
#include "factorymethod.h"
#include "shape.h"

int main()
{
    IFactory *factory;
    Shape *shape;

    factory = new SquareFactory;
    shape = factory->Draw();
    factory->Erase(shape);
    delete factory;

    factory = new CircleFactory;
    shape = factory->Draw();
    factory->Erase(shape);
    delete factory;

    return 0;
}



